//
//  NoDateCell.m
//  CBT
//
//  Created by Mr.Zhang on 2018/12/5.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import "NoDateCell.h"

@interface NoDateCell()

@property (nonatomic, strong) UIImageView *rootImageView;

@end

@implementation NoDateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = UIColorFromRGB(0xf1f1f1);
        self.contentView.backgroundColor = UIColorFromRGB(0xf1f1f1);
        [self initSubViews];
    }
    return self;
}

- (void)initSubViews
{
    _rootImageView = [[UIImageView alloc]init];
    _rootImageView.image = [UIImage imageNamed:kLocalizedString(@"zanwushuju_c", nil)];
    [self.contentView addSubview:_rootImageView];
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    _rootImageView.frame = CGRectMake(0, 0, 316, 236);
    _rootImageView.center = CGPointMake(self.contentView.frame.size.width / 2, self.contentView.frame.size.height / 2);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
